package com.tsunami.authority.entity.auth;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tsunami.authority.enums.admin.MoldType;
import com.tsunami.authority.enums.auth.ApplicationType;
import com.tsunami.authority.enums.common.DelFlag;
import com.tsunami.base.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author lx
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("tnm_auth_application")
@Schema(description = "应用")
public class Application extends Entity<Long> {

    @Schema(description = "应用名称")
    @TableField(value = "name")
    private String name;

    @Schema(description = "应用编码")
    @TableField(value = "code")
    private String code;

    @Schema(description = "应用地址")
    @TableField(value = "url")
    private String url;

    @Schema(description = "应用图标")
    @TableField(value = "icon")
    private String icon;

    @Schema(description = "应用状态")
    @TableField(value = "status")
    private Boolean status;

    @Schema(description = "应用逻辑删除标记")
    @TableField(value = "del_flag")
    private DelFlag delFlag;

    @Schema(description = "应用描述")
    @TableField(value = "describe_")
    private String describe;

    @Schema(description = "是否显示")
    @TableField(value = "display")
    private Boolean display;

    @Schema(description = "应用类型")
    @TableField(value = "type")
    private ApplicationType type;

    @Schema(description = "行业类型")
    @TableField(value = "mold")
    private MoldType mold;

    @Schema(description = "排序")
    @TableField(value = "sort")
    private Integer sort;

    @Schema(description = "是否基础应用")
    @TableField(value = "base")
    private Boolean base;

}
